package com.moliku.insurance.model.entity.ChongQing;

import javax.xml.bind.annotation.*;
import java.util.List;

/**
 * @ClassName 赵项阳
 * @Description: TODO
 * @Author DELL
 * @Date 2021/3/1
 * @Version V1.0 退保时的参数
 **/

@XmlRootElement
@XmlType(name = "PolicyEndorsement",propOrder = { "generalInfo","endorseInfoList"})
@XmlAccessorType(value=XmlAccessType.FIELD)
@XmlSeeAlso({PolicyEndorsement.class})
public class PolicyEndorsement {

    @XmlElement(name = "Head")
    private GeneralInfo generalInfo;

    @XmlElementWrapper(name="EndorseInfos")
    @XmlElement(name = "EndorseInfo")
    private List<EndorseInfo> endorseInfoList;

    public GeneralInfo getGeneralInfo() {
        return generalInfo;
    }
    @XmlTransient
    public void setGeneralInfo(GeneralInfo generalInfo) {
        this.generalInfo = generalInfo;
    }

    public List<EndorseInfo> getEndorseInfoList() {
        return endorseInfoList;
    }
    @XmlTransient
    public void setEndorseInfoList(List<EndorseInfo> endorseInfoList) {
        this.endorseInfoList = endorseInfoList;
    }
}
